from app.utils.database import create_connection

# 连接数据库并检查表
conn = create_connection()
cursor = conn.cursor()
cursor.execute('SHOW TABLES FROM probenicedb')
tables = cursor.fetchall()
print('Database tables:')
for table in tables:
    print(f'  - {table[0]}')
cursor.close()
conn.close()